package cn.dansj.common.utils.spring.resolver;

import cn.dansj.common.processor.meta.WriteToAutoConfiguration;
import cn.dansj.common.utils.spring.context.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

@WriteToAutoConfiguration
@ConditionalOnClass(PathMatchingResourcePatternResolver.class)
public class ResourcePathMatchingPatternResolver {
    @Bean
    public PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver() {
        return new PathMatchingResourcePatternResolver(ResourcePathMatchingPatternResolver.class.getClassLoader());
    }
}
